package com.ainiyar.springweb.pojo.admin.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**************************************
 * File Name : RouterVo
 * Created with : IntelliJ IDEA.
 * Author : 艾尼亚尔·毛拉吾提
 * QQ : 524155792  WeChat : ainiyar0124
 * Created Time : 2024/2/5  01:17
 * Desc :
 ***************************************/
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class RouterVo {
    //路由地址
    private String path;
    //路由对应的组件
    private String component;
    //路由名称
    private String name;
    //路由meta信息
    private Meta meta;

    @Data
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Meta {
        private String title;//标题
        private String icon;//图标
        private Integer hideInMenu;//是否在菜单中隐藏，true:不显示  false:显示 默认则是false
        private String href;//外链接
    }

    //子路由
    private List<RouterVo> children;
}

